package com.qf.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_notes")
public class Notes extends Model<Notes> {
    //小纸条id
    @TableId(type = IdType.AUTO)
    private Integer noteId;
    //发布用户id
    private Integer userId;
    //内容
    private String content;
    //动态关联的心情
    private String mood;
    //发布时间
    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;
    //修改时间
    @TableField(fill = FieldFill.UPDATE)
    private Date updatedTime;

}